creating numpy array from list and tuple